package com.c9.config.controller;

import com.c9.dao.RoleRepository;
import com.c9.entity.Role;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class RoleController {
    @Autowired
    RoleRepository roleRepository;

    @PostMapping("/save-role")
    public void saverole(Role role){
        System.out.println("ewewww");
        roleRepository.save(role);
    }
}
